package cn.edu.ujs.coor.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * 系统消息Entity
 *
 * @author 柳曾雄
 * @date 2018-07-30
 */
@Data
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "coor_message")
public class Message extends BaseEntity {

    public static final String UNREAD = "0";

    public static final String READ = "1";

    /**
     * 消息编号
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private String id;

    /**
     * 消息标题
     */
    @Column(name = "title")
    private String title;

    /**
     * 消息内容
     */
    @Column(name = "content")
    private String content;

    /**
     * 接受用户
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 消息状态
     */
    @Column(name = "status")
    private String status;
}
